import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/api/bizapp/biz/protask/${url}`, ...arg)

export default {
    add(data) {
        return request('add', data, 'post')
    },
    delete(data) {
        return request('delete', data, 'post')
    },
    edit(data) {
        return request('edit', data, 'post')
    },
    page(data) {
        return request('list', data, 'get')
    },
}
